package edu.tongji.gridding.utils;

import java.util.List;

public class CommonUtils {

	public static List<String> getSubList(List<String> list, int cnt) {
		if(cnt < 0) {
			return list;
		}
		if(cnt < list.size()) {
			return list.subList(0, cnt);
		}
		return list;
	}

}
